Conversation
WalkthroughAdds native web search support and tracking across chat, backend, and telemetry layers. Introduces AllowNativeWebSearch in WaveChatOpts to include a web_search tool in OpenAI requests. Extends streaming state to detect web_search_call events and increments webSearchCount on completion. Propagates this count into usage via new NativeWebSearchCount fields in OpenAIUsage and AIUsage, aggregates in getUsage, logs/metrics, and emits in telemetry as WaveAINativeWebSearchCount. Adjusts OpenAIRequestTool JSON tags to omitempty. Updates event handling, message/tool extraction to use threaded state. Minor formatting cleanup. Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
🧰 Additional context used🧬 Code graph analysis (2)pkg/aiusechat/openai/openai-convertmessage.go (1)
pkg/aiusechat/openai/openai-backend.go (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (13)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
No description provided.